﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateUser.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="ManageBanking.Models"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">
    <script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>

    <script src="../../Scripts/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>

    <link href="../../Content/css/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
	<script language="javascript" type="text/javascript">
	    
        $(document).ready(function() {

        $('#DateCreation').datepicker({
                showButtonPanel: true,
                changeMonth: true,
                changeYear: true,
                dateFormat: 'yy-mm-dd',
                yearRange: '1960:2020'

            });
        });             // ket thuc ready
    </script>
  
    
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {

            $('#f1').validate({
                rules: {
                    IdAccount: {
                        required: true,
                        number: true
                    },
                    Money: {
                        required: true,
                        number: true

                    }
                }, //ket thuc rules
                messages: {
                    IdAccount: {
                        required: "IdAccount not null!!!",
                        number: "Identificard Must be number"
                    },
                    Money: {
                        required: "Money can not be null!!!!",
                        number: "Money Must be number"
                    }
                }
            });  // ket thuc validate

        });
    </script>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="center_block_top"><span>&nbsp;</span><h3>Registry</h3></div>
    <div class="center_block_mau"><!--section-->
	    <div id="intro">
            <blockquote>
                <div class="redistry">
  		            <%using (Html.BeginForm("ResolveWithdraw_Deposit", "Withdraw_Deposit", FormMethod.Post, new { @id = "f1" }))
                  { %>
  		            <ul>
        	            <li>
            	            <span>ID Account:</span>
            	            <div class="input_text"></div>
            	            <div><input name="IdAccount" type="text" id="IdAccount" size="20" /></div></li>
            	        <li>
            	            <span>DateCreation:</span>
            	            <div class="input_text"></div>
            	            <div><input name="DateCreation" type="text" id="DateCreation" size="20" /></div></li>
                        <li>
            	            <span>Money:</span>
            	            <div class="input_text"></div>
            	            <div><input name="Money" type="text" id="Money" size="20" /></div></li>
                        <li>
            	            <span>Type Account:</span>
            	            <div class="abc">
            	                <select class="combobox-addacc" name="IdType">
            	                    <option class="option-addacc" value='True' >Deposit</option>
            	                    <option class="option-addacc" value='False' >Withdraw</option>
            	                </select>
            	            </div></li>
                        	
                      
                        <!-- button -->
                        <li>
            	            <span>&nbsp;</span>
                            <ul>
                	            <li ><input type="submit" name="button" value="OK" class="ok"/></li>
                                <li id="cancel" ><input type="reset" name="button" value="Cancel" class="ok" /></li>
                            </ul>
                        </li>
                    </ul>
                    <%} %>
                </div>
            </blockquote>
        <div class="clearBoth"></div>

        </div>
        <!--//intro-->
    </div>
    <div class="center_block_bottom_mau"></div>

</asp:Content>


